#!/usr/bin python3
# -*- coding:UTF-8 -*-
# Author: nigo

import pandas as pd
import plotly.express as px
import plotly.graph_objects as go

x = ['Aaron', 'Bob', 'Chris']
y1 = [5, 10, 6]
y2 = [8, 16, 12]

# 画布+条形图
fig = px.bar(x=x, y=y1)
# 散点图
scatter = go.Scatter(x=x,y=y2,mode="markers")
# fig添加散点图
fig.add_traces(scatter)
# 显示画布
fig.show()
